package com.sw.pojo;

import com.sw.provider.model.TransactionInfo2;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class BlockInfo2 extends BasePojo {
    private BigInteger number;
    private String hash;
    private String parentHash;
    private String miner;
    private BigInteger difficulty;
    private BigInteger size;
    private BigInteger gasLimit;
    private BigInteger gasUsed;
    private String timestamp;
    private List<TransactionInfo2> txs = new ArrayList<>();

    public List<TransactionInfo2> getTxs() {
        return txs;
    }

    public void setTxs(List<TransactionInfo2> txs) {
        this.txs = txs;
    }




}
